<?php if (!defined('BASEPATH')) exit('No direct access allowed.');

class Head {



	public function def($index='0')
	{
	
		if($index=='0') $data=$this->home_head();
		if($index=='1') $data=$this->page_head();
		return $data;
	
	}



	//首页头部
	public function home_head()
	{
		$this->_CI = & get_instance();	

		$data2=$this->_CI->kclass->new_row('ktitle,kdescription,kkeywords','king_list');

		$data['title'] = $data2['ktitle'];
		$data['description'] = $data2['kdescription'];
		$data['keywords'] = $data2['kkeywords'];
		return $data;
	}

	//首页头部
	public function page_head()
	{
		/** 页面初始化 */
		

		$data['title'] = '列表';
		$data['description'] = setting_item('blog_description');
		$data['keywords'] = setting_item('blog_keywords');
		return $data;
	}






}



?>